from django import template

register = template.Library()  # register的名字是固定的,不可改变


@register.simple_tag
def toYuan(v1):
    """金额转换"""
    return float(v1) / 100